#include<stdio.h>
int main()
{
    void swap(int *p1,int *p2);
    int a,b;
    int *p1,*p2;
    printf("请输入两个整数\n");
    scanf("%d,%d",&a,&b);
    p1=&a;
    p2=&b;
    if(a<b)
    {
    swap(p1,p2);
    printf("max is %d,min is %d",*p1,*p2);
    }
    else
        printf("max is %d,min is %d",a,b);
    return 0;
}
void swap(int *p1,int *p2)
{
    int *p;
    p=p1;
    p1=p2;
    p2=p;
}
